/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-04-29
 * Time: 22:48
 */
public class Test {
    public static void print(int n){
        if(n > 9){
            print(n / 10);
            System.out.print(n % 10);
        }else{
            System.out.print(n);
        }
    }
    public static void main(String[] args) {
        print(123);
    }
}
